import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Write a description of class Poderes here.
 *
 */
 public class Poderes extends Actor
{
    /**
     * Act - do whatever the Poderes wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */
    
    public void act() 
    {
    }    
    
    /**
     * Este metodo lo que hace es solo estar moviendo los poderes
     */
    public void MuevePoder()
    {
        Aspire w = (Aspire)getWorld();
        w.retypod(getY());
        w.retxpod(getX());
        int yAux;
        yAux=getY();
        setLocation(getX(), yAux+1);
        
        if(yAux == getWorld().getHeight()-1)
          setLocation(getX(), 0);
    }
}
